package com.serg.mock.mochito.xpath;

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;

public class XPathWork
{
    public static void main(String[] args) throws Exception
    {
        XPathFactory factory = XPathFactory.newInstance();
        XPath xpath = factory.newXPath();     
        // Document doc = (Document) xpath.evaluate("/Persons/Person[@id=1]", new InputSource(new FileInputStream("src/main/resources/Person.xml")), XPathConstants.DOM_OBJECT_MODEL);

    }
}
